How to organize your analyses with R Studio Projects {https://t.co/yKvlwGSOYa} #rstats #DataScience
— R-bloggers (@Rbloggers) July 21, 2021
Soccer Analytics for Beginners: An R Tutorial on EURO 2020 Data – Web Scraping & Radar Plots {https://t.co/wk5XdvxfWU} #rstats #DataScience
— R-bloggers (@Rbloggers) July 20, 2021
ggdist: Make a Raincloud Plot to Visualize Distribution in ggplot2 {https://t.co/Buy86bYiwS} #rstats #DataScience
— R-bloggers (@Rbloggers) July 22, 2021
How to perform ANCOVA in R {https://t.co/J4GIrRDJbG} #rstats #DataScience
— R-bloggers (@Rbloggers) July 22, 2021
COUNTIF Function in R {https://t.co/I6251dIRMJ} #rstats #DataScience
— R-bloggers (@Rbloggers) July 18, 2021
Forecasting Many Time Series (Using NO For-Loops) {https://t.co/NmpsmYZPll} #rstats #DataScience
— R-bloggers (@Rbloggers) July 19, 2021
10 new books added to Big Book of R {https://t.co/HJSjbbVF52} #rstats #DataScience
— R-bloggers (@Rbloggers) July 21, 2021
Bootstrapping the Zero Curve from IRS Swap Rates using R code {https://t.co/hT6iX7T4fw} #rstats #DataScience
— R-bloggers (@Rbloggers) July 18, 2021
ConfusionTableR has made it to CRAN {https://t.co/xLesUcin6m} #rstats #DataScience
— R-bloggers (@Rbloggers) July 21, 2021
Data Structures – Tabular vs. Relational {https://t.co/hcldg3ctrh} #rstats #DataScience
— R-bloggers (@Rbloggers) July 17, 2021
Top 3 Coding Best Practices from the Shiny Contest {https://t.co/HRCKN55DVX} #rstats #DataScience
— R-bloggers (@Rbloggers) July 22, 2021
How to Calculate Root Mean Square Error (RMSE) in R {https://t.co/zWeiNf4ZvZ} #rstats #DataScience
— R-bloggers (@Rbloggers) July 23, 2021
Advancing into Analytics: the reading list {https://t.co/2O0V5EZtJB} #rstats #DataScience
— R-bloggers (@Rbloggers) July 20, 2021
R is for Research, Python is for Production {https://t.co/NVCRQnvTjW} #rstats #DataScience
— R-bloggers (@Rbloggers) July 12, 2021
simplevis: interactive plots with plotly::ggplotly {https://t.co/9hFwIuT508} #rstats #DataScience
— R-bloggers (@Rbloggers) July 4, 2021
Spatially weighted averages in R with sf {https://t.co/X7ZS1iOQkj} #rstats #DataScience
— R-bloggers (@Rbloggers) July 1, 2021
FeatureTerminatoR – a package to remove unimportant variables from statistical and machine l {https://t.co/bD8tbLZmUZ} #rstats #DataScience
— R-bloggers (@Rbloggers) July 15, 2021
How to organize your analyses with R Studio Projects {https://t.co/yKvlwGSOYa} #rstats #DataScience
— R-bloggers (@Rbloggers) July 21, 2021
Soccer Analytics for Beginners: An R Tutorial on EURO 2020 Data – Web Scraping & Radar Plots {https://t.co/wk5XdvxfWU} #rstats #DataScience
— R-bloggers (@Rbloggers) July 20, 2021
SHAP Analysis in 9 Lines {https://t.co/8A7GFMURsP} #rstats #DataScience
— R-bloggers (@Rbloggers) June 24, 2021
Sentiment Analysis on Reddit using R {https://t.co/6b670kmKHk} #rstats #DataScience
— R-bloggers (@Rbloggers) June 25, 2021
10 Tips and Tricks for Data Scientists Vol.10 {https://t.co/aNt6BptYAp} #rstats #DataScience
— R-bloggers (@Rbloggers) July 4, 2021
ggplot: plot only some of the data {https://t.co/f2OoQUGd0k} #rstats #DataScience
— R-bloggers (@Rbloggers) July 12, 2021
ggdist: Make a Raincloud Plot to Visualize Distribution in ggplot2 {https://t.co/Buy86bYiwS} #rstats #DataScience
— R-bloggers (@Rbloggers) July 22, 2021
How to Create a Covariance Matrix in R {https://t.co/AXUGktYu07} #rstats #DataScience
— R-bloggers (@Rbloggers) July 11, 2021
---
title: "RBloggers Top Tweets"
output:
flexdashboard::flex_dashboard:
vertical_layout: scroll
source_code: embed
theme:
version: 4
bootswatch: yeti
css: styles/main.css
---
```{r setup, include=FALSE}
library(flexdashboard)
library(dplyr)
library(httr)
library(lubridate)
library(jsonlite)
library(purrr)
rbloggers <- fromJSON("data/rbloggers.json")
get_tweet_embed <- function(user, status_id) {
url <-
stringr::str_glue(
"https://publish.twitter.com/oembed?url=https://twitter.com/{user}/status/{status_id}&partner=&hide_thread=false"
)
response <- GET(url) %>%
content()
return(shiny::HTML(response$html))
}
```
Column {.tabset .tabset-fade}
-----------------------------------------------------------------------
### Top Tweets - 7 days {.tweet-wall}
```{r}
rblog_7 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 7, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_7_html <-
map2_chr(rblog_7$screen_name, rblog_7$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_7_html}"))
```
### Top Tweets - 30 days {.tweet-wall}
```{r}
rblog_30 <- rbloggers %>%
mutate(created_at = as_date(created_at)) %>%
filter(created_at %within% interval(start = today() - 30, end = today())) %>%
slice_max(favorite_count + retweet_count, n = 12)
rblog_30_html <-
map2_chr(rblog_30$screen_name, rblog_30$status_id, get_tweet_embed)
shiny::HTML(stringr::str_glue("{rblog_30_html}"))
```